import ElementPlus from 'element-plus'
import scTable from './components/scTable/index.vue'
import scTableColumn from './components/scTable/column.js'
import scPageHeader from './components/scPageHeader/index.vue'
import splitPane from './components/splitPane/index.vue'
import dbantIcon from './components/dbant-icon.vue'
import scContextmenu from './components/scContextmenu/index.vue'
import scContextmenuItem from './components/scContextmenu/item.vue'
import dbantNavbar from './components/navbar/dbant-navbar'
import dbantNavbarItem from './components/navbar/dbant-navbar-item.vue'
import dbantResizer from './components/resizer/dbant-resizer.vue'
import dbantLoading from './components/loading/dbant-loading.vue'
import tags from "./components/tags.vue"
import dbantTags from "./components/tabs/dbant-tab.js"
import Menu from './components/rightMenu/index.js';
import dbantTabs from "./components/tab/dbant-tabs.vue"
import * as elIcons from '@element-plus/icons-vue'
   import VXETable from 'vxe-table'
   import 'vxe-table/lib/style.css'

export default {
	install(app) {
		app.use(ElementPlus)
		app.use(Menu)
		 app.use(VXETable)

		app.component('dbantIcon', dbantIcon);
		//注册全局组件
		app.component('scTable', scTable);
		app.component('scTableColumn', scTableColumn);

		app.component('scPageHeader', scPageHeader);

		app.component('splitPane', splitPane);
		app.component('scContextmenu', scContextmenu);
		app.component('scContextmenuItem', scContextmenuItem);
		app.component('dbantNavbar', dbantNavbar);
		app.component('dbantNavbarItem', dbantNavbarItem);
		app.component('tags', tags);
		app.component('dbantLoading', dbantLoading);
		app.component('dbantResizer', dbantResizer);
		app.component('dbantTags', dbantTags);
		app.component('dbantTabs',dbantTabs)
		//统一注册el-icon图标
		for (let icon in elIcons) {
			app.component(`ElIcon${icon}`, elIcons[icon])
		}

		//关闭async-validator全局控制台警告
		window.ASYNC_VALIDATOR_NO_WARNING = 1


	}
}
